package com.yfp.tissue.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yfp.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * (Position)实体类
 *
 *
 * @since 2023-12-17 15:25:46
 */
@Data
public class Position extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -93714034854973611L;
    /**
     * 点位id
     */
    @Schema(description = "点位id")
    private String positionId;

    /**
     * 公司id
     */
    @Schema(description = "公司id")
    private String companyId;

    /**
     * 区域id
     */
    @Schema(description = "区域id")
    private String areaId;

    /**
     * 线路id
     */
    @Schema(description = "线路id")
    private String routeId;

    /**
     * 点位对接人
     */
    @Schema(description = "点位对接人")
    private String contracts;

    /**
     * 联系方式
     */
    @Schema(description = "联系方式")
    private String mobile;

    /**
     * 点位类型id
     */
    @Schema(description = "点位类型id")
    private String positionTypeId;

    /**
     * 点位名称
     */
    @Schema(description = "点位名称")
    private String positionName;
    /**
     * 点位名称
     */
    private String positonName;

    /**
     * 启用1/禁用0
     */
    @Schema(description = "启用1/禁用0")
    private String enable;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    private Date updateTime;

    /**
     * 是否删除
     */
    @Schema(description = "是否删除")
    private Boolean isDelete;
    /**
     * 是否删除
     */
    @Schema(description = "点位描述")
    private String description;
    /**
     * 点位类型名称
     */
    @Schema(description = "点位类型名称")
    private String typeName;
  /**
     * 点位类型名称
     */
    @Schema(description = "操作人")
    private String updateName;
  /**
     * 点位类型名称
     */
    @Schema(description = "创建人")
    private String createName;
    /**
     * 分成比例
     */
    @Schema(description = "分成比例")
    private Double proportion;
    /**
     * 手续费比例（百分比）
     */
    @Schema(description = "手续费比例（百分比）")
    private Double feeRate;
    /**
     * 冻结时间
     */
    @Schema(description = "冻结时间")
    private Integer freezeDay;
    /**
     * 投资人id
     */
    @Schema(description = "投资人id")
    private Long investorUserId;
    /**
     * 客服人id
     */
    @Schema(description = "客服人id")
    private Long operationUserId;

    /**
     * 创客收款商户号
     */
    @Schema(description = "创客收款商户号")
    private String proceedsAccount;

    /**
     * 点位分成列表
     */
    @Schema(description = "点位分成列表")
    @TableField(exist = false)
    private List<PositionSharing> positionSharings;

    @TableField(exist = false)
    @Schema(description = "标签 1特殊 2普通")
    public Integer label;

}

